// pages/report/success.js
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    user_plan_id: 0
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let { user_plan_id = 19 } = options
    this.setData({
      user_plan_id: user_plan_id 
    })
    this.getRes();
  },

  getRes() {
    let that = this;
    app.http.$ajax({
      url: 'v1.exam/getRes',
      data: {
        user_plan_id: this.data.user_plan_id
      }
    },
      {
        success(res) {
          console.log(res)
        }
      });
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  
})